CC = gcc

PROG_NAME = main

main:main.o Constant.o ManageRoute.o NeighborDiscover.o Recv.o Beacon.o
	${CC} -o main $^ -lpthread

main.o:Beacon.h Constant.h ManageRoute.h NeighborDiscover.h Recv.h
Beacon.o:Beacon.h Constant.h
Constant.o:Constant.h
ManageRoute.o:ManageRoute.h Constant.h
NeighborDiscover.o:NeighborDiscover.h ManageRoute.h Constant.h Beacon.h
Recv.o:Recv.h Constant.h

.PHONY : clean
clean:
	-rm *.o main
